using System;
using UnityEngine;

[Serializable]
public class GravityMod : MonoBehaviour
{
	public float force;

	public Vector3 dir;

	public Vector3 newUp;

	public Vector3 ParentRotation;

	public float damping;

	public GravityMod()
	{
		force = 9.8f;
		damping = 6f;
	}

	public void FixedUpdate()
	{
		ref Vector3 reference = ref dir;
		Vector3 acceleration = Input.acceleration;
		reference.x = acceleration.x;
		ref Vector3 reference2 = ref dir;
		Vector3 acceleration2 = Input.acceleration;
		reference2.y = acceleration2.y;
		ref Vector3 reference3 = ref dir;
		Vector3 acceleration3 = Input.acceleration;
		reference3.z = 0f - acceleration3.z;
		Physics.gravity = dir * force;
	}

	public void Main()
	{
	}
}
